package org.csu.cms.service.impl;

import cn.hutool.core.util.IdUtil;
import org.csu.cms.dao.SysLogDao;
import org.csu.cms.domain.SysLog;
import org.csu.cms.service.ISysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ISysLogServiceImpl implements ISysLogService {

    @Autowired
    private SysLogDao sysLogDao;
    private IdUtil idUtil;
    @Override
    public void saveLog(SysLog sysLog) {
        sysLog.setLogId(idUtil.simpleUUID());
        sysLogDao.insert(sysLog);
    }
}
